package cn.signUpSystem.pojo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 职位类
 * 
 * @author ASUS
 * 
 */
public class Position implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4667995352818846554L;

	private Integer id;

	/**
	 * 职位名称
	 */
	private String name;

	/**
	 * 职位详情
	 */
	private String detail;

	/**
	 * 职位与应聘者关系：一对多
	 * 
	 * 应聘者集合
	 */
	private Set<Applicant> applicants = new HashSet<Applicant>();

	/**
	 * 父职位与子职位关系：一对多
	 * 
	 * 父职位
	 */
	private Position parentPosition;

	/**
	 * 子职位与父职位关系：多对一
	 * 
	 * 子职位集合
	 */
	private Set<Position> childrenPosition = new HashSet<Position>();

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Set<Applicant> getApplicants() {
		return applicants;
	}

	public void setApplicants(Set<Applicant> applicants) {
		this.applicants = applicants;
	}

	public Position getParentPosition() {
		return parentPosition;
	}

	public void setParentPosition(Position parentPosition) {
		this.parentPosition = parentPosition;
	}

	public Set<Position> getChildrenPosition() {
		return childrenPosition;
	}

	public void setChildrenPosition(Set<Position> childrenPosition) {
		this.childrenPosition = childrenPosition;
	}

}
